menu bar not displaying on Ubuntu

by: samlexxy, 9 years ago


the code below doesnt display the menu bar and i dont know why...but it displays the tool bar...

        extractAction = QtGui.QAction("&GET TO THE CHOPPAH!!!", self)
        extractAction.setShortcut("Ctrl+Q")
        extractAction.setStatusTip('Leave The App')
        extractAction.triggered.connect(self.close_application)

        openEditor = QtGui.QAction("&Editor", self)
        openEditor.setShortcut("Ctrl+E")
        openEditor.setStatusTip('Open Editor')
        openEditor.triggered.connect(self.editor)

        openFile = QtGui.QAction("&Open File", self)
        openFile.setShortcut("Ctrl+O")
        openFile.setStatusTip('Open File')
        openFile.triggered.connect(self.file_open)

        self.statusBar()

        mainMenu = self.menuBar()
        
        fileMenu = mainMenu.addMenu("&File")
        fileMenu.addAction(extractAction)
        fileMenu.addAction(openFile)
        
        editorMenu = mainMenu.addMenu("&Editor")
        editorMenu.addAction(openEditor)

        self.home()




You must be logged in to post. Please login or register an account.



Possibly this answer can help you: http://stackoverflow.com/questions/21346725/pyqt4-menubar-doesnt-appear-in-ubuntu



-Harrison 9 years ago

You must be logged in to post. Please login or register an account.


thanks...it was really helpful...

-samlexxy 9 years ago
Last edited 9 years ago

You must be logged in to post. Please login or register an account.